function startRequest()
{
  var url = "http://localhost/index.xml";
  startGETRequest(url, onComplete, onEnd);
}

function onComplete(responseText, responseXML)
{
  mainNode = responseXML.documentElement;
  imie = mainNode.firstChild.firstChild.nodeValue;
  nazwisko = mainNode.lastChild.firstChild.nodeValue;

  str = "Odczytane imię: " + imie + "<br>";
  str += "Odczytane nazwisko: " + nazwisko;

  var div = document.getElementById("dataDiv");
  div.innerHTML = str;
}

function onEnd()
{
}
